package com.nikitova.craps3d.controller 
{
	import com.nikitova.craps3d.constants.statemachine.StateTransitions;
	import com.nikitova.craps3d.model.MouseManagerProxy;

	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;	

	/**
	 * @author schranz
	 */
	public class MouseManagerCommand extends SimpleCommand
	{
		override public function execute( note : INotification ) : void
		{
			var mouseManagerProxy : MouseManagerProxy = facade.retrieveProxy(MouseManagerProxy.NAME) as MouseManagerProxy;
			switch (note.getName())
			{
				case StateTransitions.SHOW_BET_STATE:
					mouseManagerProxy.showMouse();
				break;
				case StateTransitions.SHOW_ROLL_STATE:
					mouseManagerProxy.hideMouse();
				break;
			}
		}
	}
}
